#ifndef FRIEND_H
#define FRIEND_H

class point
{
private:
    double x;
    double y;

public:
    point(double x, double y);

    double getX();

    double getY();

    //声明类的友元函数
    friend void func(point& p);

    //声明类的友元类
    friend class ClassA;
};

class ClassA
{

};

#endif // FRIEND_H
